<?php

class UserSupplier extends AppModel {
    var $name = 'UserSupplier';

    var $belongsTo = array('User');
    
    var $validate = array(
        'user_id' => array(
            'rule' => 'notEmpty',
            'message' => 'Please input an user id',
            'required' => true,
        ),
        'supplier_id' => array(
            'rule' => 'notEmpty',
            'message' => 'Please select a vendor for user.',
            'required' => true,
        )
    );
}
?>
